//
//  MyTableViewCell.m
//  22-ALiStar
//
//  Created by Snow on 16/8/16.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "MyTableViewCell.h"

@implementation MyTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _label = [[UILabel alloc] init];
        _labelOfStar = [[UILabel alloc] init];
        _labelOfNumber = [[UILabel alloc] init];
        [self.contentView addSubview:_label];
        [self.contentView addSubview:_labelOfStar];
        [self.contentView addSubview:_labelOfNumber];
    }
    return self;

}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _label.frame = CGRectMake(50, 10, self.frame.size.width / 3, 20);
    _label.text = @"luckyone";
    _labelOfNumber.frame = CGRectMake(10, 10, 30, 30);
    _labelOfNumber.text = @"2";
    _labelOfStar.frame = CGRectMake(50, 35, self.frame.size.width, 10);
    _labelOfStar.text = @"EXO";
    _labelOfStar.font = [UIFont systemFontOfSize:12];
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
